package com.csii.modules.online.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.csii.autopoi.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 在线生成
 */
@TableName("onl_auth_page")
@ApiModel(
		value = "onl_auth_page对象",
		description = "onl_auth_page"
)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OnlAuthPage implements Serializable {
	private static final long a = 1L;

	@ApiModelProperty(value = " 主键")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private String id;

	@ApiModelProperty(value = "online表id")
	@Excel(name = "online表id", width = 15.0D)
	private String cgformId;

	@ApiModelProperty(value = "字段名/按钮编码")
	@Excel(name = "字段名/按钮编码", width = 15.0D)
	private String code;

	@ApiModelProperty(value = "1字段 2按钮")
	@Excel(name = "1字段 2按钮", width = 15.0D)
	private Integer type;

	@ApiModelProperty(value = "3可编辑 5可见(仅支持两种状态值3,5)")
	@Excel(name = "3可编辑 5可见", width = 15.0D)
	private Integer control;

	@ApiModelProperty(value = "3列表 5表单(仅支持两种状态值3,5)")
	@Excel(name = "3列表 5表单", width = 15.0D)
	private Integer page;

	@ApiModelProperty(value = "1有效 0无效")
	@Excel(name = "1有效 0无效", width = 15.0D)
	private Integer status;

	@ApiModelProperty(value = "创建时间")
	@Excel(name = "创建时间", width = 15.0D)
	private Date createTime;

	@ApiModelProperty(value = "创建人")
	@Excel(name = "创建人", width = 15.0D)
	private String createBy;

	@ApiModelProperty(value = "更新人")
	@Excel(name = "更新人", width = 15.0D)
	private String updateBy;

	@ApiModelProperty(value = "更新日期")
	@Excel(name = "更新日期", width = 15.0D)
	private Date updateTime;

	public OnlAuthPage(String cgformId, String code, int page, int control) {
		this.cgformId = cgformId;
		this.code = code;
		this.page = page;
		this.control = control;
	}

}
